package com.cursor.config;

import org.springframework.boot.jdbc.DataSourceBuilder;
// import org.springframework.context.annotation.Bean;
// import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

// @Configuration
public class SQLiteDialectConfig {

    // @Bean(name = "alternateDataSource")
    public DataSource alternateDataSource() {
        DataSourceBuilder dataSourceBuilder = DataSourceBuilder.create();
        dataSourceBuilder.driverClassName("org.sqlite.JDBC");
        dataSourceBuilder.url("jdbc:sqlite:cursorswitcher.db");
        return dataSourceBuilder.build();
    }
} 